package com.bosssoft.promotions.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bosssoft.promotions.domain.dto.PromotionsDTO;
import com.bosssoft.promotions.domain.dto.PromotionsQueryDTO;
import com.bosssoft.promotions.domain.po.Promotions;
import org.springframework.stereotype.Service;

import java.util.List;

/*
* 促销活动
*/
@Service
public interface PromotionsService {
    /*
    * 添加新的促销活动
    */
    boolean addPromotion(PromotionsDTO promotionsDTO);

    /*
    * 更新促销活动
    */
    boolean updatePromotion(PromotionsDTO promotionsDTO);

    /*
    * 删除促销活动
    * <只做删除标记，不做实际删除 >
    */
    boolean deletePromotionById(PromotionsQueryDTO promotionsQueryDTO);

    /*
    * 批量删除促销活动
    */
    boolean batchDeletePromotionById(List<PromotionsQueryDTO> idList);

    /*
    * 查询促销活动
    */
    Promotions queryPromotions(PromotionsQueryDTO promotionsQueryDTO);

    Page<Promotions> QueryAllPagePromotions(int page, int size);
}
